package com.xxx.dorm.service;

import com.xxx.dorm.domain.Student;

import java.util.List;

public interface StudentService {

    List<Student> findAll();

    void addStudent(Student student);

    void updateStudent(Student student,Integer beforeDid);

    /**
     * 通过id查找学生
     * @param id
     * @return
     */
    Student findById(Integer id);

    /**
     * 删除学生
     * @param id
     */
    void removeStudent(String id);

    /**
     * 带条件查找
     * @param conditions
     * @param information
     * @return
     */
    List<Student> find(String conditions, String information);
}
